package mhyx2.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @GetMapping("/admin/2")
    public String admin() {
        return "hello admin2";
    }

    @GetMapping("/role1/1")
    public String user() {
        return "hello role1";
    }

    @GetMapping("/hello")
    public String hello() {
        return "hello";
    }

    @GetMapping("/logins")
    public String login() {
        System.out.println("我是登录界面");
        return "我是登录界面";
    }

    @GetMapping("/index")
    public String index() {
        System.out.println("我是主界面");
        return "我是主界面";
    }
}

